//
//  BYJSleepSetViewController.m
//  BLDMusics
//
//  Created by 白云杰 on 16/3/28.
//  Copyright © 2016年 李晓丹. All rights reserved.
//

#import "BYJSleepSetViewController.h"

@interface BYJSleepSetViewController ()

@end

@implementation BYJSleepSetViewController

- (void)viewWillDisappear:(BOOL)animated {
    [PlayViewController sharePlayViewBar].hidden = NO;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor whiteColor];
    
    UIBarButtonItem *returnItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"item"] style:UIBarButtonItemStyleDone target:self action:@selector(returnItemAction:)];
    self.navigationItem.leftBarButtonItem = returnItem;
}

- (void)returnItemAction:(UIBarButtonItem *)item {
    [self.sideMenuViewController setContentViewController:[[UINavigationController alloc] initWithRootViewController:[[RootViewController alloc] init]]
                                                 animated:YES];
    [self.sideMenuViewController hideMenuViewController];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
